﻿using Entity;
using Microsoft.AspNetCore.Mvc;

namespace AIYResturant.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class HomeController : ControllerBase
    {
        private ApiDbContext _context;

        public HomeController(ApiDbContext dbContext)
        {
            _context = dbContext;
        }

        [HttpGet]
        public IList<User> Get()
        {
            return _context.User.Where(s => s.FirstName == "lisi").ToList();
        }
    }
}
